package com.goktech.olala.server.dao.goods;

import com.goktech.olala.server.pojo.goods.Goods;
import com.goktech.olala.server.pojo.goods.GoodsVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsMapper {
    int deleteByPrimaryKey(String goodsId);

    int insert(Goods record);

    Goods selectByPrimaryKey(String goodsId);

    List<Goods> selectAll();

    int updateByPrimaryKey(Goods record);

    /**
     * 通过关键字查询需要的信息
     * @param keyword
     * @return
     */
    List<GoodsVO> keywordSelect(@Param("keyword") String keyword);
}